import random

def generate_data(size=10000, min_val=-1000, max_val=1000, filename="input.txt"):
    nums = [random.randint(min_val, max_val) for _ in range(size)]
    with open(filename, "w") as f:
        f.write(" ".join(map(str, nums)))

if __name__ == "__main__":
    generate_data() 